<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
  </head>
  <body>
    <!--1.内联JS-->
    <input type="button" value="内联JS" onclick="alert('你点了我！我是内联JS')"/>
    
    <!--2.内部JS：<script>标签内部-->
    <input type="button" value="内部JS" id="inside-js"/>
    
    <!--3.外部JS：link引入-->
    <input type="button" value="外部JS" id="outside-js"/>
  </body>
  
  <script>
    document.getElementById('inside-js').addEventListener('click', function () {
      alert('你点了我！我是内部JS');
    });
  </script>
  
  <script src="staticest1.js"/>
</html>